package com.lbz.service;

import com.github.pagehelper.PageInfo;
import com.lbz.common.ServerResponse;
import com.lbz.vo.OrderVO;

/**
 * @Author 林必昭
 * @Date 2019/6/21 11:04
 */

public interface OrderService {

    //创建订单
    ServerResponse createOrder(Integer userId,Integer shippingId);

    //获取订单的商品信息，为预下单准备
    ServerResponse getOrderCartProduct(Integer userId);

    //订单列表
    ServerResponse<PageInfo> getOrderList(Integer userId, int pageNum, int pageSize);

    //订单详情detail,封装返回一个orderVO
    ServerResponse<OrderVO> getOrderDetail(Integer userId,Long orderNo);

    //取消订单
    ServerResponse<String> cancel(Integer userId,Long orderNo);


    /***************************后台********************************/


    //订单列表
    ServerResponse<PageInfo> manageList(int pageNum,int pageSize);

    //按订单号查询订单
    ServerResponse<PageInfo> manageSearch(Long orderNo,int pageNum,int pageSize);

    //订单详情
    ServerResponse<OrderVO> manageDetail(Long orderNo);

    //订单发货
    ServerResponse<String> manageSendGoods(Long orderNo);



}
